package com.bosch.in.rtp1.ept.model.technical;

import java.util.ArrayList;
import java.util.List;

import com.bosch.in.rtp1.ept.constant.CommonConstants;

public class Condition4HldDurByMonthDiagram {
	
	/**
	 * Normal conditions
	 */
	private int year;
	private int month;
	private int priority;
	
	/**
	 * Parameter values, the number of values must be equal with 
	 * the number of place holder in search condition
	 */
	private List<Object> parameterValues;
	
	public Condition4HldDurByMonthDiagram()
	{
		this.year = CommonConstants.CURRENT_YEAR;
	}
	
	public int getYear() {
		return year;
	}
	
	public void setYear(int year) {
		this.year = year;
	}
	
	public int getMonth() {
		return month;
	}
	
	public void setMonth(int month) {
		this.month = month;
	}

	public void setParameterValues(List<Object> parameterValues) {
		this.parameterValues = parameterValues;
	}

	public List<Object> getParameterValues() {
		return parameterValues;
	}
	
	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public void builParameterValuesList()
	{
		this.parameterValues = new ArrayList<Object>();
		this.parameterValues.add(this.year);
		this.parameterValues.add(this.month);
		this.parameterValues.add(this.priority);
	}
	
	public void builParameterValuesList(int priority, int month)
	{
		this.parameterValues = new ArrayList<Object>();
		this.parameterValues.add(this.year);
		this.parameterValues.add(month);
		this.parameterValues.add(priority);
	}
	
}
